package cn.tedu.charging.device.service;

import cn.tedu.charging.common.pojo.param.GunStatusUpdateParam;
import cn.tedu.charging.common.pojo.vo.StationInfoVO;
import cn.tedu.charging.device.pojo.param.StationNearQueryParam;
import cn.tedu.charging.device.pojo.po.StationCanalPO;
import cn.tedu.charging.device.pojo.po.StationPO;

import java.util.List;

public interface DeviceService {
    StationInfoVO getStationInfo(Integer gunId);

    Boolean updateGunStatus(GunStatusUpdateParam param);

    List<StationInfoVO> nearStation(StationNearQueryParam stationNearQueryParam);

    void saveAllStations2Cache(List<StationPO> allStations);

    List<StationPO> getAllStationsFromDB();

    void insert(StationCanalPO stationCanalPO);

    void update(StationCanalPO before, StationCanalPO after);

    void delete(StationCanalPO stationCanalPO);
}
